import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AddressModule } from './address/address.module';
import { BaseModule } from './base/base.module';
import { UserModule } from './users/user.module';
import { AuthModule } from './auth/auth.module';

@Module({
  imports: [
    MongooseModule.forRoot(
      'mongodb://localhost:27017/nest_elm',
      {
        useNewUrlParser: true,
        useCreateIndex: true
      }
    ),
    AuthModule,
    AddressModule,
    BaseModule,
    UserModule
  ],
})
export class AppModule {}
